﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Wizard.UI
{
    public partial class InternalWizardPage : Wizard.UI.WizardPage
    {
        private string p_Title = "Title";

        public InternalWizardPage()
        {
            InitializeComponent();
        }

        [Category("Appearance")]
        public string Title
        {
            get
            {
                return this.p_Title;
            }
            set
            {
                this.p_Title = value;
            }
        }

        [Category("Appearance")]
        public string Description
        {
            get
            {
                return this.c_DescriptionLabel.Text;
            }
            set
            {
                this.c_DescriptionLabel.Text = value;
            }
        }

        private void c_TitlePanel_Paint(object sender, PaintEventArgs e)
        {
            TextRenderer.DrawText(
                e.Graphics,
                this.p_Title,
                new Font(this.Font, FontStyle.Bold),
                new Point(70, 16),
                Color.Black);
        }
    }
}
